package extendsfeature;

public class Test {
    public static void main(String[] args) {
        Zi z = new Zi();
        z.show();
    }
}

    class Fu{
        String name = "父类的name";
    }

    class Zi extends Fu{
        String name = "子类的name";
        public void show(){
            String name = "show的name";
            System.out.println(name);//输出show的name
            System.out.println(this.name);//输出子类的name
            System.out.println(super.name);//输出父类的name //super. 指定访问父类的成员
        }
    }

